/**   
 * @文件名称: ProductEntity.java
 * @类路径: com.lxj.cms.manage.entity
 * @描述: TODO
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @时间：2013-8-14 上午12:10:18
 * @版本：V1.0   
 */

package com.lxj.cms.manage.entity;

import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.lxj.core.entity.SYSBaseEntity;

/**
 * @类功能说明：产品
 * @类修改者：
 * @修改日期：
 * @修改说明：
 * @公司：昆明天度网络信息科技有限公司
 * @作者：李兴建
 * @创建时间：2013-8-14 上午12:10:18
 * @版本：V1.0
 */
@MappedSuperclass
public class ProductEntity extends SYSBaseEntity {
	// 产品图片路径
	private String imageUrl;
	// 产品跳转路径
	private String absoluteUrl;
	// 产品名称
	private String infoTitle;
	// 产品价格
	private String infoPrice;
	// 产品来源
	private String infoSource;
	// 产品评论数量
	private int infoComment;
	// 产品评分
	private int infoScore;
	// 发布人类型0:会员发布(默认) 1：管理员发布
	private int infoPostedType;
	// 所属品牌
	private ProductBrandsEntity brands;
	// 所属分类
	private ProductCategoriesEntity categorie;

	// 热卖推荐:是否热卖推荐 0无 1是
	private int hotOffers;
	// 热卖推荐时间 用于排序(2013121224122345)
	private Long hotOffersTime;
	// 热卖推荐人 0:发布人 1：管理员
	private int hotOffersTag;

	// 是否降价 0:正常 1：降价
	private int priceReduction;
	// 降价多少
	private String priceReductionPrice;
	// 降价时间 用于排序(2013121224122345)
	private Long priceReductionTime;

	public int getPriceReduction() {
		return priceReduction;
	}

	public void setPriceReduction(int priceReduction) {
		this.priceReduction = priceReduction;
	}

	public String getPriceReductionPrice() {
		return priceReductionPrice;
	}

	public void setPriceReductionPrice(String priceReductionPrice) {
		this.priceReductionPrice = priceReductionPrice;
	}

	public Long getPriceReductionTime() {
		return priceReductionTime;
	}

	public void setPriceReductionTime(Long priceReductionTime) {
		this.priceReductionTime = priceReductionTime;
	}

	public int getHotOffers() {
		return hotOffers;
	}

	public void setHotOffers(int hotOffers) {
		this.hotOffers = hotOffers;
	}

	public Long getHotOffersTime() {
		return hotOffersTime;
	}

	public void setHotOffersTime(Long hotOffersTime) {
		this.hotOffersTime = hotOffersTime;
	}

	public int getHotOffersTag() {
		return hotOffersTag;
	}

	public void setHotOffersTag(int hotOffersTag) {
		this.hotOffersTag = hotOffersTag;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getAbsoluteUrl() {
		return absoluteUrl;
	}

	public void setAbsoluteUrl(String absoluteUrl) {
		this.absoluteUrl = absoluteUrl;
	}

	public String getInfoTitle() {
		return infoTitle;
	}

	public void setInfoTitle(String infoTitle) {
		this.infoTitle = infoTitle;
	}

	public String getInfoPrice() {
		return infoPrice;
	}

	public void setInfoPrice(String infoPrice) {
		this.infoPrice = infoPrice;
	}

	public String getInfoSource() {
		return infoSource;
	}

	public void setInfoSource(String infoSource) {
		this.infoSource = infoSource;
	}

	public int getInfoComment() {
		return infoComment;
	}

	public void setInfoComment(int infoComment) {
		this.infoComment = infoComment;
	}

	public int getInfoScore() {
		return infoScore;
	}

	public void setInfoScore(int infoScore) {
		this.infoScore = infoScore;
	}

	public int getInfoPostedType() {
		return infoPostedType;
	}

	public void setInfoPostedType(int infoPostedType) {
		this.infoPostedType = infoPostedType;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public ProductBrandsEntity getBrands() {
		return brands;
	}

	public void setBrands(ProductBrandsEntity brands) {
		this.brands = brands;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public ProductCategoriesEntity getCategorie() {
		return categorie;
	}

	public void setCategorie(ProductCategoriesEntity categorie) {
		this.categorie = categorie;
	}

}
